﻿@{
    Layout = null;
}
@using Webdiyer.WebControls.Mvc;
@model PagedList<ChuangDu_Spirit_QGB_Model.OpenTicketInfo>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>开票记录</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
    <script src="~/Scripts/jquery-1.10.2.js"></script>
    <link href="~/Layui/layui-v2.2.3/layui/css/layui.css" rel="stylesheet" />
    <script src="~/Layui/layui-v2.2.3/layui/layui.js"></script>
    <script src="~/MvcPager.js"></script>
</head>
<body>
    <div style="width:100%;height:50px;margin:0 auto">
        <div class="layui-btn-group" style="float:left;padding-left:20px;padding-top:20px;">
            <button class="layui-btn"><i class="layui-icon">&#xe627;</i>全选</button>
            <button class="layui-btn"><i class="layui-icon">&#x1002;</i>刷新</button>
            <button class="layui-btn"><i class="layui-icon">&#xe608;</i>新建</button>
            <button class="layui-btn" style="display:none"><i class="layui-icon">&#xe642;</i>编辑</button>
            <button class="layui-btn" style="display:none"> <i class="layui-icon">&#xe640;</i>删除</button>
            <button class="layui-btn" style="display:none"><i class="layui-icon">&#xe67c;</i>导入EXCEL</button>
            <button class="layui-btn"><i class="layui-icon">&#xe609;</i>导出本页</button>
            <button class="layui-btn"><i class="layui-icon">&#xe62d;</i>导出全部</button>
        </div>
        <div class="demoTable" style="float:right;padding-right:20px;padding-top:20px;">
            <div class="layui-inline">
                <input class="layui-input" name="id" id="demoReload" autocomplete="off">
            </div>
            <button class="layui-btn"><i class="layui-icon">&#xe615;</i></button>
            <button class="layui-btn"><i class="layui-icon">&#xe614;</i></button>
        </div>
    </div>
    <div style="width:100%;height:400px; overflow-y:scroll; overflow-x:scroll;">
        <div style="width:300%;height:399px;">
            <table class="layui-table" style="text-align:center">
                <thead>
                    <tr style="background-color:#009688;color:#ffffff">
                        <td lay-data="{type:'checkbox', fixed: 'left'}"><input id="Checkbox1" type="checkbox" /></td>
                        <td>编号</td>
                        <td>处理流程</td>
                        <td>组织</td>
                        <td>部门</td>
                        <td>流程类型</td>
                        <td>流程编号</td>
                        <td>流程步骤</td>
                        <td>开票单位名称</td>
                        <td>纳税人识别号</td>
                        <td>发票类型</td>
                        <td>地址及电话</td>
                        <td>开户银行</td>
                        <td>账号</td>
                        <td>金额大写</td>
                        <td>开票内容</td>
                        <td>客户名称</td>
                        <td>票据类型</td>
                        <td>合同/订单号</td>
                        <td>发票编号</td>
                        <td>期次</td>
                        <td>开票日期</td>
                        <td>开票金额</td>
                        <td>是否回款</td>
                        <td>备注</td>
                        <td>附件</td>
                        <td>是否结束</td>
                        <td>结束日期</td>
                        <td>添加人</td>
                        <td>创建日期</td>
                        <td>更新人</td>
                        <td>更新日期</td>
                    </tr>

                    @foreach (var i in Model)
            {
                        <tr>
                            <td lay-data="{type:'checkbox'}"><input id="Checkbox1" type="checkbox" /></td>
                            <td>@i.ID</td>
                            <td>@i.OTFlow</td>
                            <td>@i.OTorganization</td>
                            <td>@i.OTSection</td>
                            <td>@i.OTFlowType</td>
                            <td>@i.OTFlownumber</td>
                            <td>@i.OTFlowstep</td>
                            <td>@i.OTopenunit</td>
                            <td>@i.OTpersonNumber</td>
                            <td>@i.OPinvoice</td>
                            <td>@i.OPtimetel</td>
                            <td>@i.OPopenban</td>
                            <td>@i.OPNumber</td>
                            <td>@i.OPmoneybig</td>
                            <td>@i.OTContent</td>
                            <td>@i.OTClientname</td>
                            <td>@i.OTticktype</td>
                            <td>@i.OTpactNum</td>
                            <td>@i.OTinvoiceNum</td>
                            <td>@i.OTissue</td>
                            <td>@i.OToticektime</td>
                            <td>@i.OTomoney</td>
                            <td>@i.OTisreturnmoeny</td>
                            <td>@i.OTremark</td>
                            <td>@i.OTaccessory</td>
                            <td>@i.OTisorno</td>
                            <td>@i.OTDatetime</td>
                            <td>@i.OTaddperson</td>
                            <td>@i.OTCreatetime</td>
                            <td>@i.OTupdateperson</td>
                            <td>@i.OTupdatetime</td>
                        </tr>
                    }
                </thead>
            </table>
        </div>
    </div>

    <div style="padding-left:50px">

        <span style="font-size:25px"> @Model.CurrentPageIndex/ @Model.TotalPageCount</span> <span style="font-size:25px">
            总共 @Model.TotalItemCount 条记录
        </span>


        @Ajax.Pager(Model, new PagerOptions { PageIndexParameterName = "pageid", HtmlAttributes = new Dictionary<string, object> { { "style", "float:model" } }, PagerItemTemplate = "&nbsp;{0}", FirstPageText = "<input id='Button1' type='button' value='第一页' style='width:60px;height:40px;background-color:#009688' />", PrevPageText = "<input id='Button1' type='button' value='上一页' style='width:60px;height:40px;background-color:#009688'/>", NextPageText = "<input id='Button1' type='button' value='下一页' style='width:60px;height:40px;background-color:#009688'", LastPageText = "<input id='Button1' type='button' value='最后一页' style='width:60px;height:40px;background-color:#009688' />" })
    </div>

    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;"></fieldset>




</body>
</html>